// Package model
// @Author zhongxc
// @Date 2024/7/26 15:15:00
// @Desc
package model

import "database/sql"

type ButtonModel struct {
	Id          int64        `gorm:"column:id"`
	Name        string       `gorm:"column:name"`
	Code        string       `gorm:"column:code"`
	Description string       `gorm:"column:description"`
	CreatedBy   string       `gorm:"column:created_by"`
	CreatedAt   sql.NullTime `gorm:"column:created_at"`
	UpdatedBy   string       `gorm:"column:updated_by"`
	UpdatedAt   sql.NullTime `gorm:"column:updated_at"`
}

func NewButtonModel() *ButtonModel {
	return &ButtonModel{}
}

func (i *ButtonModel) TableName() string {
	return "sys_buttons"
}
